package com.springboot.show_web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * Created by yaosheng on 2019/11/9.
 */
public class MyListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println ("contextInitialized...web启动应用");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println ("contextInitialized...当前web项目销毁");
    }
}